import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';

@Component({
  selector: 'page-contact',
  templateUrl: 'contact.html'
})
export class ContactPage {
  public list=[];
  public num;
  constructor(public navCtrl: NavController) {
      for(var i=0;i<8;i++) {
        this.list.push("1");
      }
      this.num=0;
  }

  /**
   * 点击增加事件
   */
  addNum() {
    this.num++;
  }

  /**
   * 点击减少事件
   */
  removeName(){
    this.num--;
  }

}

 
